package com.superiron.scaffold.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.superiron.scaffold.config.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * @author ：yzg
 * @date ：Created in 2022/9/6 10:04
 * @description：
 * @modified By：
 * @version: $
 */
@Entity
@Table(name = "sa_role", indexes = {@Index(name = "index_code", columnList = "code")})
@TableName("sa_role")
@Data
public class RoleEntity extends BaseEntity {
	
	@Column(name = "code", length = 20)
	private String code;
	
	@Column(name = "name", length = 50)
	private String name;
}
